<!DOCTYPE html>
<html>
<head>
	{include file="common_header" /}
	{include file="common_top" /}
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-body">
		  <div class="layui-box layui-laypage layui-laypage-molv">{$page}</div>
            <table class="layui-table" lay-even="" lay-skin="nob">

            <thead>
              <tr>
                <th>#序号</th>
                <th>平台</th>
				<th>类型</th>
				<th>用户</th>
				<th>店铺名称</th>
				<th>任务数</th>
				<th>单价</th>
				<th>余单数</th>
				<th>总价</th>
                <th>状态</th>
				<th>时间</th>
				<th>管理</th>
              </tr> 
            </thead>
            <tbody>
             {volist name="task" id="vo"}
				<tr id="tr_{$vo.t_id}">
					<td>{$vo.t_id}</td>
					<td>{$vo.tpf_title}</td>
					<td>{$vo.tt_title}</td>
					<td>{$vo.u_phone}</td>
					<td>{$vo.t_dp_name}</td>
					<td>{$vo.t_count}</td>
					<td>{$vo.t_money}</td>
					<td>{$vo.t_y_count}</td>
					<td>{$vo.t_z_money}</td>
					<td class="text-center">{if $vo.t_status==1}待审{elseif $vo.t_status==2}已发布{else}完结{/if}</td>
					<td>{$vo.t_addtime}</td>
					<td>
							<div class="layui-btn-group">
                            {if $ps['del']['power']}
								<button class="layui-btn layui-btn-sm" onclick="calldel('{:url('task/del',array('id'=>$vo.t_id))}','tr_{$vo.t_id}')"><i class="layui-icon">&#xe640;</i></button>
                            {/if}
                            {if $ps['edit']['power']}
								<button class="layui-btn layui-btn-sm" onclick="callurl('{:url('task/edit',array('id'=>$vo.t_id))}')"><i class="layui-icon">&#xe642;</i></button>
							{/if}
							</div>
					</td>
				</tr>
			{/volist}
            </tbody>
          </table> 
		  <div class="layui-box layui-laypage layui-laypage-molv">{$page}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
  {include file="common_footer" /} 
</body>
</html>